Encapsulate a callback with support for weak references
CallbackList expects its subscribers to adhere to this interface.
Methods
|
|
__call__
__cmp__
__hash__
hasTarget
isValid
|
|
__call__
|
__call__ (
self,
*args,
*kw,
)
Make the callback, passing in args and *kw as well
|
|
__cmp__
|
__cmp__ ( self, other )
Callbacks must support equality testing, even if they are only
equal to themselves
|
|
__hash__
|
__hash__ ( self )
Callbacks must be hashable
|
|
hasTarget
|
hasTarget ( self, object )
Return true if callback is object or has object as its target
|
|
isValid
|
isValid ( self )
Return false if callback is no longer valid
|
|